//
//  MJAnimationGifHeader.m
//  智能备考学习
//
//  Created by 盛超 on 2018/2/2.
//  Copyright © 2018年 盛超. All rights reserved.
//

#import "MJAnimationGifHeader.h"

@implementation MJAnimationGifHeader

#pragma mark - 重写方法
#pragma mark 基本设置
- (void)prepare
{
    [super prepare];
    NSMutableArray *images = [NSMutableArray array];
    for (NSInteger i=0; i<16; i++) {
        [images addObject:[UIImage imageNamed:[NSString stringWithFormat:@"loading%ld",i+1]]];
    }
    [self setImages:images forState:MJRefreshStateIdle];
    [self setImages:images forState:MJRefreshStatePulling];
    [self setImages:images forState:MJRefreshStateRefreshing];
    
    self.lastUpdatedTimeLabel.hidden = YES;
    self.stateLabel.hidden = YES;

}

@end
